﻿@model IEnumerable<Scorpicore.Models.Banknote>

<h2>Банкноти</h2>

@(Html.Kendo().Grid(Model)
    .Name("administration-tracks-grid")
    .Columns(columns =>
            {
                columns.Bound(p => p.Id);
                columns.Bound(p => p.SerialNumber);
                columns.Bound(p => p.Letters);
                columns.Bound(p => p.Distance);
                columns.Bound(p => p.ImageUrl);
                columns.Bound(p => p.LastPlace);
                columns.Bound(p => p.Denomination);
                columns.Template(@<text>
                    @Html.ActionLink("Промяна", "Edit", new { id = item.Id })
                </text>);
                columns.Template(@<text>
        @Html.ActionLink("Изтриване", "Delete", new { id = item.Id })
                </text>);
                columns.Template(@<text>
        @Html.ActionLink("Детайли", "Details", new { id = item.Id })
                </text>);
            })
                            .Pageable()
                            .Filterable()
                            .DataSource(dataSource => dataSource
                                .Server()
                                .Read(read => read.Action("Index", "BanknotesAdministration"))
                            .PageSize(10)))
